package com.core.rest;


public class Test {
    
    public static void main(String[]args){
        
        RestClient rc = new RestClient("http://127.0.0.1:7777/gameserver/user/onlinelist");
        
        rc.addParam("name", "jiongjiong");
        
        
        try {
            
            rc.execute(RequestMethod.PUT);
            System.out.println("Response code==>"+rc.getResponseCode());
            System.out.println(rc.getResponse());
            
        } catch (Exception e) {
            
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

}
